<?php 
	session_start();
	if(!isset($_SESSION['login_admin']))
	{
		echo '<meta http-equiv="refresh" content="1;url=login.php" />';
		exit(0);
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Thomson Cartering</title>
    <script src="../js/demo.js" type="text/javascript"></script>
    <script src="../js/jquery.dataTables.js" type="text/javascript"></script>
	<link rel="stylesheet" href="../css/table.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../css/demo.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../css/button.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../css/mws.theme.css" type="text/css" media="screen" />
    <link type="text/css" href="../css/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
	<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="../js/jquery-ui-1.8.21.custom.min.js"></script>
    <!--[if IE 6]><link rel="stylesheet" href="../css/style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="../css/style.ie7.css" type="text/css" media="screen" /><![endif]-->
</head>
<?php
	include('..\process\database.php');
	include('..\process\Tool.php');
	include('..\process\product.php');
	include('..\process\productOption.php');
	include('..\process\productVote.php');
	$db = new database();
	$product = new product();
	$productVote = new productVote();
	$productOption = new productOption();
?>
<body>
<?php 
    if(isset($_GET['func'])&& $_GET['func'] == 'listPro')
    {
    	include('listProduct.php');
    }
    elseif(isset($_GET['func'])&& $_GET['func'] == 'editProduct')
    {
		include('editProduct.php');
    }
	else 
	{
		include('listProduct.php');
	}
?>        
<div class="cleared"></div> 
</body>
</html>
